﻿<Page x:Class="JasRibbonApplicatie.Views.KiesJeAanvraag"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:conv="clr-namespace:JasRibbonApplicatie.Converters"
      mc:Ignorable="d" 
      d:DesignHeight="600" d:DesignWidth="1000"
	Title="KiesJeAanvraag">
    <Page.Resources>
        <conv:GebruikerDetailsConverter x:Key="GebrDetailsConverter"/>
    </Page.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="1" Margin="12,12,0,0" Name="aanvragenGrid" VerticalAlignment="Top" HorizontalAlignment="Stretch" Visibility="Collapsed">
			<GroupBox Header="Aanvragen" Name="wekenAanvragenGroupBox" HorizontalAlignment="Stretch" VerticalAlignment="Top">
				<Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
					<Button Content="&lt;&lt;" Name="vorigeWeekButton" Width="38" Click="vorigeWeekButton_Click" Margin="0,10,10,0" Height="22" VerticalAlignment="Top" Grid.Row="1" HorizontalAlignment="Right" />
					<Button Content="&gt;&gt;" Name="volgendeWeekButton" Width="38" Click="volgendeWeekButton_Click" Margin="10,10,0,0" Height="22" VerticalAlignment="Top" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Left" />
					<Label Content="Week 000 test" Name="weekLabel" HorizontalAlignment="Center" HorizontalContentAlignment="Center" Margin="10" VerticalContentAlignment="Center" VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" />
					<Button Content="Naar huidige week gaan" Name="huidigeWeekButton" Click="huidigeWeekButton_Click" IsEnabled="False" Margin="10" Height="22" VerticalAlignment="Top" Grid.Column="0" Grid.ColumnSpan="3" Width="200" />
					<DataGrid AutoGenerateColumns="False" Name="aanvragenDataGrid" DataContext="{Binding}" GridLinesVisibility="None" BorderBrush="#00000000" Background="White" SelectionChanged="aanvragenDataGrid_SelectionChanged" Margin="15" CanUserAddRows="True" MinHeight="200" Grid.Row="2" Grid.ColumnSpan="3" IsReadOnly="True" SelectionMode="Single" CanUserDeleteRows="False" CanUserResizeRows="False">
						<DataGrid.Columns>
							<DataGridTextColumn Binding="{Binding aanvraag_id}" Header="ID" IsReadOnly="True" />
                            <DataGridTextColumn Binding="{Binding vereniging.vereniging}" Header="Vereniging" IsReadOnly="True" />
							<DataGridTextColumn Binding="{Binding evenement.naam}" Header="Activiteit" IsReadOnly="True" />
                            <DataGridTextColumn Binding="{Binding geplande_afhaling, StringFormat=ddd dd/MM/yy HH:mm}" Header="Afhaling" IsReadOnly="True" />
                            <DataGridTextColumn Binding="{Binding geplande_inlevering, StringFormat=ddd dd/MM/yy HH:mm}" Header="Inlevering" IsReadOnly="True" />
                            <DataGridTextColumn Binding="{Binding gebruiker.VoornaamNaam}" Header="Verantwoordelijke">
                                <DataGridTextColumn.CellStyle>
                                    <Style>
                                        <Setter Property="ToolTipService.ToolTip" Value="{Binding gebruiker, Converter={StaticResource ResourceKey=GebrDetailsConverter}}"/>
                                    </Style>
                                </DataGridTextColumn.CellStyle>
                            </DataGridTextColumn>
						</DataGrid.Columns>
					</DataGrid>
				</Grid>
			</GroupBox>
		</Grid>
        <Label Content="Kies uit materiaal afhalen / inleveren" Height="46" HorizontalAlignment="Left" Margin="120,5,0,0" Name="infoLabel" VerticalAlignment="Top" Width="454" FontSize="22" Grid.Row="0" />
        <Image Height="49" HorizontalAlignment="Left" Margin="56,0,0,0" Name="pijlImage" Stretch="Uniform" VerticalAlignment="Top" Width="58" Source="/JasRibbonApplicatie;component/Images/OntleingIcons/orig/arrow_up_left.png" Grid.Row="0" />
    </Grid>
</Page>
